<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
<style type="text/css">
.ftitle{
    font-size:14px;
    font-weight:bold;
    padding:5px 0;
    margin-bottom:10px;
    border-bottom:1px solid #ccc;
}
.fitem{
    margin-bottom:10px;
}
.fitem label{
    display:inline-block;
    font-weight:bold;
    text-align:center;
    width: 29%;
}
</style>
</head>
<body style="padding: 5px">
<form id="form1" method="post">
	<input name="id" class="mini-hidden" />
	<div class="fitem">
		<label>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</label>
		<input id="input0298" name="name" class="mini-textbox" required="true" readOnly="true"
			style="width: 220px;" popupHeight="100"/>
	</div>
	<div class="fitem">
		<label>基本工资：</label>
		<input name="basic" class="mini-textbox" vtype="float" required="true" maxLength="9" style="width: 220px"/><b>元</b>
	</div>
</form>
<div style="text-align:center;padding-top: 45px;">
    <a class="mini-button" onclick="saveBasic();" style="width:60px;margin-right:20px;">确定</a>       
    <a class="mini-button" onclick="window.CloseOwnerWindow();" style="width:60px;">取消</a>       
</div>
<script type="text/javascript">
mini.parse();
var form = new mini.Form("form1");

//标准方法接口定义
function SetData(data) {
	//跨页面传递的数据对象，克隆后才可以安全使用
    data = mini.clone(data);
    form.setData(data);
    form.setChanged(false);
}

function saveBasic(){
	var o = form.getData(); 
    form.validate();
    if (form.isValid() == false) return;
    $.post("staff_basic_update.do",o,function(text){
    	if(text.success){
        	window.CloseOwnerWindow("succ");
        }else{
        	mini.alert("数据错误！");
        }
    },"json");
}

</script>
</body>
</html>